package com.apes.framework.plugin.soe.store.database.service;

import com.apes.framework.api.DomainService;
import com.apes.framework.plugin.esb.api.SimpleRequest;
import com.apes.framework.plugin.soe.metadata.Operate;
import com.apes.framework.plugin.soe.store.database.repository.OperateRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("operateService")
public class OperateService extends DomainService{

    @Autowired
    OperateRepository operateRepository;


    public Operate save (SimpleRequest simpleRequest) {
        Operate operate = simpleRequest.getO(Operate.class);
        return  operateRepository.saveAndFlush(operate);
    }

}
